package com.liangwj.springbootweb.domain.jpa_entity;


//import io.swagger.models.auth.In;
//import lombok.AllArgsConstructor;
//import lombok.Data;
//import lombok.NoArgsConstructor;
//
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.GeneratedValue;
//import javax.persistence.Id;

/**
 * TODO:为了spring-data-jpa创建的实体bean
 * @author Liangwenjun
 * @date 2018-12-13
 * @version 1.0
 */
//@Data
//@AllArgsConstructor
//@NoArgsConstructor
//@Entity
//public class JpaUser {
//
//    @Id
//    @GeneratedValue
//    private Long id;
//
//    @Column(name = "user_name", nullable = false, length = 100)
//    private String username;
//
//    @Column(name = "age", nullable = false)
//    private Integer age;
//
//    //constructor
//    public JpaUser(String username, Integer age) {
//        this.username = username;
//        this.age = age;
//    }
//    @Override
//    public String toString() {
//        return "JpaUser{" +
//                "id=" + id +
//                ", username='" + username + '\'' +
//                ", age=" + age +
//                '}';
//    }
//}
